package com.eric;

import com.eric.test.MyComponent;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author lk
 */
@EnableSwagger2
@SpringBootApplication
public class Application {

    public static void main(String[] args) {

        ConfigurableApplicationContext run = SpringApplication.run(Application.class);

        MyComponent myComponent = run.getBean(MyComponent.class);
        myComponent.printAnnotatedValue();
    }
}
